<template>
  <div class="sm-divider-horizontal">
    <span class="sm-divider-inner-horizontal">
      <slot></slot>
    </span>
  </div>
</template>

<script>
export default {
  name: "SmDivider",
  props: {
    orientation: {
      type: String,
      default: "horizontal"
    }
  }
};
</script>

<style>
.sm-divider-vertical {
  width: 1px;
  height: 100%;
}
.sm-divider-horizontal {
  /* width: 100%; */
  display: inline;
  white-space: nowrap;
  text-align: center;
  position: relative;
  /* margin: 15px; */
}
.sm-divider-horizontal::before {
  content: "";
  position: absolute;
  top: 50%;
  border-top: 1px solid #232323;
  width: 50%;
  /* left: -15%; */
}
.sm-divider-horizontal::after {
  content: "";
  position: absolute;
  top: 50%;
  border-top: 1px solid #232323;
  width: 50%;
  /* right: -15%; */
}
.sm-divider-inner-vertical {
  writing-mode: vertical-lr;
}
.sm-divider-inner-horizontal {
  display: inline-block;
  padding: 0 24px;
  box-sizing: border-box;
  writing-mode: horizontal-tb;
}
</style>
